/*
 * @(#)ExceptionHandler.java $version 2010. 8. 11
 *
 * Copyright 2007-2010 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nhncorp.usf.core.exception;

import com.nhncorp.usf.core.call.Fault;
import com.nhncorp.usf.core.service.ServiceExecutionContext;

/**
 * ExceptionHandler interface
 *
 * @author Web Platform Development Team
 */
public interface ExceptionHandler {

    /**
     * Handle.
     *
     * @param ex      the ex
     * @param context the context
     * @throws Exception the exception
     */
    public void handle(Exception ex, ServiceExecutionContext context) throws Exception;

    /**
     * Handle.
     *
     * @param fault   the fault
     * @param context the context
     * @throws Exception the exception
     */
    public void handle(Fault fault, ServiceExecutionContext context) throws Exception;
}
